package cn.gok.day6.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("student")
public class Student implements Serializable {
    private static final long seriaVersionUID=1L;
    @TableId(value = "sid", type = IdType.INPUT)
    private Long sid;
    private String sname;
    private Integer age;
    private String sex;
    private Long snum;
    @Version
    private Integer version;
    @TableLogic
    private Integer delted;
    @TableField(fill = FieldFill.INSERT)
    private Date create_time;
    @TableField(fill = FieldFill.UPDATE)
    private Date update_time;
    private Long cid;
}
